home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5788 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 62 6c | 61 63 6b 2e 77 65 65 67 |Path: bl|ack.weeg|
|00000010| 2e 75 69 6f 77 61 2e 65 | 64 75 21 72 6f 62 69 6e |.uiowa.e|du!robin|
|00000020| 73 6f 6e 0a 46 72 6f 6d | 3a 20 54 68 65 20 41 6d |son.From|: The Am|
|00000030| 6f 72 70 68 6f 75 73 20 | 4d 61 73 73 20 3c 72 6f |orphous |Mass <ro|
|00000040| 62 69 6e 73 6f 6e 40 62 | 6c 75 65 2e 77 65 65 67 |binson@b|lue.weeg|
|00000050| 2e 75 69 6f 77 61 2e 65 | 64 75 3e 0a 4e 65 77 73 |.uiowa.e|du>.News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000070| 67 2e 63 0a 53 75 62 6a | 65 63 74 3a 20 52 65 3a |g.c.Subj|ect: Re:|
|00000080| 20 45 61 73 69 65 73 74 | 20 77 61 79 20 74 6f 20 | Easiest| way to |
|00000090| 63 65 6e 74 65 72 20 61 | 20 73 74 72 69 6e 67 3f |center a| string?|
|000000a0| 0a 44 61 74 65 3a 20 57 | 65 64 2c 20 32 31 20 46 |.Date: W|ed, 21 F|
|000000b0| 65 62 20 31 39 39 36 20 | 30 30 3a 30 34 3a 32 37 |eb 1996 |00:04:27|
|000000c0| 20 2d 30 36 30 30 0a 4f | 72 67 61 6e 69 7a 61 74 | -0600.O|rganizat|
|000000d0| 69 6f 6e 3a 20 55 6e 69 | 76 65 72 73 69 74 79 20 |ion: Uni|versity |
|000000e0| 6f 66 20 49 6f 77 61 2c | 20 49 6f 77 61 20 43 69 |of Iowa,| Iowa Ci|
|000000f0| 74 79 2c 20 49 41 2c 20 | 55 53 41 0a 44 69 73 74 |ty, IA, |USA.Dist|
|00000100| 72 69 62 75 74 69 6f 6e | 3a 20 77 6f 72 6c 64 0a |ribution|: world.|
|00000110| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 50 69 6e |Message-|ID: <Pin|
|00000120| 65 2e 41 33 32 2e 33 2e | 39 31 2e 39 36 30 32 32 |e.A32.3.|91.96022|
|00000130| 30 32 33 35 39 32 36 2e | 31 35 36 33 33 35 43 2d |0235926.|156335C-|
|00000140| 31 30 30 30 30 30 40 62 | 6c 61 63 6b 2e 77 65 65 |100000@b|lack.wee|
|00000150| 67 2e 75 69 6f 77 61 2e | 65 64 75 3e 0a 52 65 66 |g.uiowa.|edu>.Ref|
|00000160| 65 72 65 6e 63 65 73 3a | 20 3c 34 66 6f 62 6b 61 |erences:| <4fobka|
|00000170| 24 31 73 74 40 70 61 72 | 6c 6f 72 2e 68 69 77 61 |$1st@par|lor.hiwa|
|00000180| 61 79 2e 6e 65 74 3e 20 | 3c 44 4d 71 45 47 35 2e |ay.net> |<DMqEG5.|
|00000190| 38 7a 34 40 65 73 6b 69 | 6d 6f 2e 63 6f 6d 3e 20 |8z4@eski|mo.com> |
|000001a0| 3c 34 66 72 69 66 35 24 | 65 36 70 40 66 6f 68 6e |<4frif5$|e6p@fohn|
|000001b0| 69 78 2e 6d 65 74 72 6f | 6e 65 74 2e 63 6f 6d 3e |ix.metro|net.com>|
|000001c0| 20 3c 44 4d 75 75 7a 47 | 2e 31 79 4b 40 65 73 6b | <DMuuzG|.1yK@esk|
|000001d0| 69 6d 6f 2e 63 6f 6d 3e | 20 3c 34 67 62 6d 6d 6f |imo.com>| <4gbmmo|
|000001e0| 24 6d 35 76 40 61 69 72 | 64 6d 68 6f 72 2e 67 65 |$m5v@air|dmhor.ge|
|000001f0| 6e 2e 6e 7a 3e 20 3c 34 | 67 64 67 73 30 24 6a 67 |n.nz> <4|gdgs0$jg|
|00000200| 36 40 61 69 72 64 6d 68 | 6f 72 2e 67 65 6e 2e 6e |6@airdmh|or.gen.n|
|00000210| 7a 3e 0a 4e 4e 54 50 2d | 50 6f 73 74 69 6e 67 2d |z>.NNTP-|Posting-|
|00000220| 48 6f 73 74 3a 20 62 6c | 61 63 6b 2e 77 65 65 67 |Host: bl|ack.weeg|
|00000230| 2e 75 69 6f 77 61 2e 65 | 64 75 0a 4d 69 6d 65 2d |.uiowa.e|du.Mime-|
|00000240| 56 65 72 73 69 6f 6e 3a | 20 31 2e 30 0a 43 6f 6e |Version:| 1.0.Con|
|00000250| 74 65 6e 74 2d 54 79 70 | 65 3a 20 54 45 58 54 2f |tent-Typ|e: TEXT/|
|00000260| 50 4c 41 49 4e 3b 20 63 | 68 61 72 73 65 74 3d 55 |PLAIN; c|harset=U|
|00000270| 53 2d 41 53 43 49 49 0a | 58 2d 53 65 6e 64 65 72 |S-ASCII.|X-Sender|
|00000280| 3a 20 72 6f 62 69 6e 73 | 6f 6e 40 62 6c 61 63 6b |: robins|on@black|
|00000290| 2e 77 65 65 67 2e 75 69 | 6f 77 61 2e 65 64 75 0a |.weeg.ui|owa.edu.|
|000002a0| 49 6e 2d 52 65 70 6c 79 | 2d 54 6f 3a 20 3c 34 67 |In-Reply|-To: <4g|
|000002b0| 64 67 73 30 24 6a 67 36 | 40 61 69 72 64 6d 68 6f |dgs0$jg6|@airdmho|
|000002c0| 72 2e 67 65 6e 2e 6e 7a | 3e 20 0a 0a 4f 6e 20 32 |r.gen.nz|> ..On 2|
|000002d0| 31 20 46 65 62 20 31 39 | 39 36 2c 20 53 69 6d 6f |1 Feb 19|96, Simo|
|000002e0| 6e 20 48 6f 73 69 65 20 | 77 72 6f 74 65 3a 0a 0a |n Hosie |wrote:..|
|000002f0| 3e 20 53 69 6d 6f 6e 20 | 48 6f 73 69 65 3a 0a 3e |> Simon |Hosie:.>|
|00000300| 20 3e 20 70 72 69 6e 74 | 66 28 22 25 2a 73 5c 6e | > print|f("%*s\n|
|00000310| 22 2c 20 28 73 74 72 6c | 65 6e 28 53 74 72 69 6e |", (strl|en(Strin|
|00000320| 67 20 2d 20 4c 69 6e 65 | 4c 65 6e 29 20 2f 20 32 |g - Line|Len) / 2|
|00000330| 2c 20 53 74 72 69 6e 67 | 29 3b 0a 3e 20 0a 3e 20 |, String|);.> .> |
|00000340| 20 20 53 6f 72 72 79 2c | 20 6d 61 6b 65 20 74 68 | Sorry,| make th|
|00000350| 61 74 3a 0a 3e 20 0a 3e | 20 70 72 69 6e 74 66 28 |at:.> .>| printf(|
|00000360| 22 25 2a 73 5c 6e 22 2c | 20 28 73 74 72 6c 65 6e |"%*s\n",| (strlen|
|00000370| 28 53 74 72 69 6e 67 20 | 2b 20 4c 69 6e 65 4c 65 |(String |+ LineLe|
|00000380| 6e 29 29 20 2f 20 32 2c | 20 53 74 72 69 6e 67 29 |n)) / 2,| String)|
|00000390| 3b 0a 0a 20 20 4f 4b 2c | 20 73 6f 20 66 6f 72 20 |;.. OK,| so for |
|000003a0| 63 68 61 72 20 2a 53 74 | 72 69 6e 67 20 3d 20 22 |char *St|ring = "|
|000003b0| 48 65 6c 6c 6f 2c 20 77 | 6f 72 6c 64 22 3b 20 77 |Hello, w|orld"; w|
|000003c0| 65 20 6e 6f 77 20 68 61 | 76 65 20 61 20 70 6f 69 |e now ha|ve a poi|
|000003d0| 6e 74 65 72 20 74 6f 20 | 0a 61 20 6d 65 6d 6f 72 |nter to |.a memor|
|000003e0| 79 20 6c 6f 63 61 74 69 | 6f 6e 20 36 37 20 63 68 |y locati|on 67 ch|
|000003f0| 61 72 73 20 70 61 73 74 | 20 74 68 65 20 65 6e 64 |ars past| the end|
|00000400| 20 6f 66 20 74 68 65 20 | 73 74 72 69 6e 67 20 28 | of the |string (|
|00000410| 36 37 20 62 65 63 61 75 | 73 65 20 4c 69 6e 65 4c |67 becau|se LineL|
|00000420| 65 6e 20 0a 77 61 73 20 | 23 64 65 66 69 6e 65 64 |en .was |#defined|
|00000430| 20 74 6f 20 62 65 20 38 | 30 29 2e 20 20 49 66 20 | to be 8|0). If |
|00000440| 73 74 72 6c 65 6e 28 29 | 20 64 6f 65 73 6e 27 74 |strlen()| doesn't|
|00000450| 20 68 61 6e 67 20 79 6f | 75 72 20 6d 61 63 68 69 | hang yo|ur machi|
|00000460| 6e 65 20 63 6f 6e 73 69 | 64 65 72 20 0a 79 6f 75 |ne consi|der .you|
|00000470| 72 73 65 6c 66 20 6c 75 | 63 6b 79 2e 20 20 42 65 |rself lu|cky. Be|
|00000480| 73 69 64 65 73 20 74 68 | 61 74 2c 20 6e 6f 74 68 |sides th|at, noth|
|00000490| 69 6e 67 20 69 6e 20 74 | 68 61 74 20 70 72 69 6e |ing in t|hat prin|
|000004a0| 74 66 28 29 20 6d 6f 76 | 65 73 20 74 68 65 20 73 |tf() mov|es the s|
|000004b0| 74 72 69 6e 67 20 0a 61 | 77 61 79 20 66 72 6f 6d |tring .a|way from|
|000004c0| 20 74 68 65 20 6c 65 66 | 74 20 73 69 64 65 20 6f | the lef|t side o|
|000004d0| 66 20 74 68 65 20 73 63 | 72 65 65 6e 2c 20 73 6f |f the sc|reen, so|
|000004e0| 20 69 6e 20 74 68 61 74 | 20 72 65 73 70 65 63 74 | in that| respect|
|000004f0| 20 79 6f 75 72 20 63 6f | 72 72 65 63 74 69 6f 6e | your co|rrection|
|00000500| 20 0a 69 73 20 6e 6f 74 | 20 61 6e 20 69 6d 70 72 | .is not| an impr|
|00000510| 6f 76 65 6d 65 6e 74 20 | 6f 76 65 72 20 79 6f 75 |ovement |over you|
|00000520| 72 20 6f 72 69 67 69 6e | 61 6c 20 70 6f 73 74 2e |r origin|al post.|
|00000530| 0a 0a 20 20 42 61 63 6b | 20 74 6f 20 74 68 65 20 |.. Back| to the |
|00000540| 64 72 61 77 69 6e 67 20 | 62 6f 61 72 64 2c 20 61 |drawing |board, a|
|00000550| 67 61 69 6e 2e 20 3a 29 | 0a 0a 20 2d 2d 4a 61 6d |gain. :)|.. --Jam|
|00000560| 65 73 20 52 6f 62 69 6e | 73 6f 6e 20 28 72 6f 62 |es Robin|son (rob|
|00000570| 69 6e 73 6f 6e 40 63 73 | 2e 75 69 6f 77 61 2e 65 |inson@cs|.uiowa.e|
|00000580| 64 75 20 2d 6f 72 2d 20 | 6a 61 6d 65 73 2d 72 6f |du -or- |james-ro|
|00000590| 62 69 6e 73 6f 6e 40 75 | 69 6f 77 61 2e 65 64 75 |binson@u|iowa.edu|
|000005a0| 29 0a 2f 2a 20 20 20 49 | 6e 64 65 65 64 2c 20 43 |)./* I|ndeed, C|
|000005b0| 2b 2b 20 69 73 20 61 20 | 62 69 74 20 6f 66 20 61 |++ is a |bit of a|
|000005c0| 6e 20 6f 64 64 62 61 6c | 6c 20 6f 66 20 61 20 6c |n oddbal|l of a l|
|000005d0| 61 6e 67 75 61 67 65 20 | 2e 2e 2e 20 67 69 76 65 |anguage |... give|
|000005e0| 6e 20 74 68 65 20 77 61 | 79 20 74 68 61 74 20 2a |n the wa|y that *|
|000005f0| 0a 20 2a 20 69 74 20 72 | 65 71 75 69 72 65 73 20 |. * it r|equires |
|00000600| 70 72 69 76 61 74 65 20 | 70 61 72 74 73 20 74 6f |private |parts to|
|00000610| 20 62 65 20 76 69 73 69 | 62 6c 65 2e 20 20 54 68 | be visi|ble. Th|
|00000620| 69 73 20 69 6e 63 72 65 | 61 73 65 73 20 74 68 65 |is incre|ases the|
|00000630| 20 73 74 72 65 6e 67 74 | 68 20 6f 66 20 20 2a 0a | strengt|h of *.|
|00000640| 20 2a 20 63 6f 75 70 6c | 69 6e 67 20 64 72 61 6d | * coupl|ing dram|
|00000650| 61 74 69 63 61 6c 6c 79 | 2e 2e 2e 20 20 20 20 20 |atically|... |
|00000660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000670| 20 20 2d 2d 20 44 72 2e | 20 52 69 63 68 20 41 72 | -- Dr.| Rich Ar|
|00000680| 74 79 6d 20 20 20 20 20 | 20 20 20 20 20 2a 2f 0a |tym | */.|
+--------+-------------------------+-------------------------+--------+--------+